#include "widget.h"
#include "ui_widget.h"
#include  <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_add_clicked()
{
    this->setWindowOpacity(this->windowOpacity() + 0.1);
    qDebug() << this->windowOpacity();
}

void Widget::on_sub_clicked()
{
    this->setWindowOpacity(this->windowOpacity() - 0.1);
    qDebug() << this->windowOpacity();
}
